package com.sy.simpleegg.mvp.contract

import com.sy.simpleegg.base.IModel
import com.sy.simpleegg.base.IPresenter
import com.sy.simpleegg.base.IView

interface LogManageContract {
    interface View: IView{
        fun refreshSpinner(dateArr: Array<String>?)

        fun showUploading(result: Int)
    }

    interface Presenter: IPresenter<View>{
        fun getLogDirs()

        fun uploadLog(date: String)
    }

    interface Model: IModel{
        fun getLogDirs(): Array<String>?

        /**
         * 上传日志
         * @param date 日期
         * @return 1-上传完成 2-上传失败
         */
        suspend fun uploadLog(date: String): Int
    }
}